package com.atguigu.srb.core.service;

import com.atguigu.srb.common.utils.PageUtils;
import com.atguigu.srb.core.entity.Borrower;
import com.atguigu.srb.core.vo.BorrowerApprovalVO;
import com.atguigu.srb.core.vo.BorrowerDetailVO;
import com.atguigu.srb.core.vo.BorrowerVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 借款人 服务类
 * </p>
 *
 * @author cfx
 * @since 2022-06-25
 */
public interface BorrowerService extends IService<Borrower> {

    void saveBorrowerVOByUserId(BorrowerVO borrowerVO, Long userId);

    Integer getStatusByUserId(Long userId);

    PageUtils queryPage(Map<String, Object> params);

    BorrowerDetailVO getBorrowerDetailVOById(Long id);

    void approval(BorrowerApprovalVO borrowerApprovalVO);
}
